import Vue from 'vue'
import VueRouter from 'vue-router'

import Login from '@/views/Login'

import Home from '@/views/Home'

import Welcome from '@/views/Welcome'

import Users from '@/views/Users'

import '@/assets/glodal.css'
Vue.use(VueRouter)

const routes = [
  { path: '/', redirect: '/Login' },
  { path: '/login', component: Login },
  {
    path: '/home',
    component: Home,
    redirect: '/welcome',
    children: [{
      path: '/welcome', component: Welcome

    },
    {
      path: '/users', component: Users

    }]
  }

]

const router = new VueRouter({
  routes
})

export default router
